package com.wang.common.config.exception;


import lombok.Data;


/**
 * @author wjh
 * @create 2023-04-18
 */
@Data
public class CustomException extends RuntimeException{
    private Integer code;
    private String msg;

    public CustomException(Integer code, String msg){
        super(msg);
        this.code = code;
        this.msg = msg;
    }



    @Override
    public String toString(){
        return "CustomException{"+"code="+this.getCode()+", message="+this.getMsg()+"}";
    }
}
